try:
    sum = 0
    n = int(input())
    s = input().split(" ")
    if len(s) != n:
        print("数据个数不符！")
    else:
        for i in range(n):
            if int(s[i]) % 2 != 0:
                sum += int(s[i])
        print(sum)
except ValueError:
    print("数据输入有误！\n程序出错!")